/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MineItem;

import net.tygzs.minerpg.Main;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 *
 * @author thtTNT
 */
public class Command_Remove
{

    public static void removeItem(CommandSender sender, String ItemName)
    {
        if (Main.getPluginConfig().getItem(ItemName) == null)
        {
            sender.sendMessage(ChatColor.RED + "物品不存在");
            return;
        }
        Main.getPluginConfig().removeItem(ItemName);
        sender.sendMessage(ChatColor.GREEN + "移除成功!");
    }
}
